﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SetListManager.Models.SongAndUsageTypes>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>
<asp:Content ID="Head1" ContentPlaceHolderID="HeadContent" runat="server">
    <%--jquery base--%>
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1-vsdoc.js" type="text/javascript"></script>   
    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js" type="text/javascript"></script>   

    <script type="text/javascript">
        $(function () {
            // Set focus to our song title
            $('#song_Title').focus();
        });
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm()) {%>
        <div id="editbuttons_rt">
        <input type="submit" class="link-button" value="Create" />
        <%: Html.ActionLink("Cancel", "Index", null, new { @class = "link-button" })%>
        </div>

    <h1>Create</h1>
        <%: Html.ValidationSummary(true) %>
        <fieldset>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.song.Title) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Title, new { style = "width:40em;" })%>
                <%: Html.ValidationMessageFor(model => model.song.Title) %>
            </div>

           <div class="editor-label">
                <%: Html.LabelFor(model => model.song.Usage) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model => model.usagetypes,new SelectList(Model.usagetypes,"UsageTypeID","UsageText")) %>
                <%: Html.ValidationMessageFor(model => model.usagetypes) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.song.Key) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Key) %>
                <%: Html.ValidationMessageFor(model => model.song.Key) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.song.Soloist) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Soloist) %>
                <%: Html.ValidationMessageFor(model => model.song.Soloist) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.song.Tempo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Tempo) %>
                <%: Html.ValidationMessageFor(model => model.song.Tempo) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.song.Genre)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Genre)%>
                <%: Html.ValidationMessageFor(model => model.song.Genre)%>
            </div>

            <div class="editor-label">
                Duration
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.duration_str)%>
                <%: Html.ValidationMessageFor(model => model.duration_str)%>
            </div>
            
            <div class="editor-label">
                <%: Model.song.Band.Note1Name%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Note1)%>
                <%: Html.ValidationMessageFor(model => model.song.Note1)%>
            </div>
            
            <div class="editor-label">
                <%: Model.song.Band.Note2Name%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Note2)%>
                <%: Html.ValidationMessageFor(model => model.song.Note2)%>
            </div>
            
            <div class="editor-label">
                <%: Model.song.Band.Note3Name%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Note3)%>
                <%: Html.ValidationMessageFor(model => model.song.Note3)%>
            </div>
            
            <div class="editor-label">
                <%: Model.song.Band.Note4Name%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Note4)%>
                <%: Html.ValidationMessageFor(model => model.song.Note4)%>
            </div>
            
            <div class="editor-label">
                <%: Model.song.Band.Note5Name%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.song.Note5)%>
                <%: Html.ValidationMessageFor(model => model.song.Note5)%>
            </div>
            
            
        </fieldset>

    <% } %>

</asp:Content>
